home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2018 January / PCgo 01-2018 CD-ROM Germany.iso / nw.pak / Unnamed File 005221.txt < prev    next >
Encoding:
Text File  |  2015-07-29  |  4.1 KB  |  136 lines

  1. /*
  2.  * Copyright (C) 2008 Google Inc. All rights reserved.
  3.  * 
  4.  * Redistribution and use in source and binary forms, with or without
  5.  * modification, are permitted provided that the following conditions are
  6.  * met:
  7.  * 
  8.  *     * Redistributions of source code must retain the above copyright
  9.  * notice, this list of conditions and the following disclaimer.
  10.  *     * Redistributions in binary form must reproduce the above
  11.  * copyright notice, this list of conditions and the following disclaimer
  12.  * in the documentation and/or other materials provided with the
  13.  * distribution.
  14.  *     * Neither the name of Google Inc. nor the names of its
  15.  * contributors may be used to endorse or promote products derived from
  16.  * this software without specific prior written permission.
  17.  * 
  18.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29.  */
  30.  
  31. /* These styles override the default styling for HTML elements as defined in
  32.    WebCore/css/html.css. So far we have used this file exclusively for
  33.    making our form elements match Firefox's. */
  34.  
  35. input:not([type]), 
  36. input[type="email" i],
  37. input[type="number" i],
  38. input[type="password" i],
  39. input[type="tel" i],
  40. input[type="url" i],
  41. input[type="text" i] {
  42.     padding:1px 0;
  43. }
  44.  
  45. input[type="search" i] {
  46.     padding:1px;
  47. }
  48.  
  49. input[type="checkbox" i] {
  50.     margin:3px 3px 3px 4px;
  51. }
  52.  
  53. input[type="radio" i] {
  54.     margin:3px 3px 0 5px;
  55. }
  56.  
  57. input[type="range" i] {
  58.     color: #c4c4c4;
  59. }
  60.  
  61. /* Not sure this is the right color. #EBEBE4 is what Firefox uses.
  62.    FIXME: Figure out how to support legacy input rendering. 
  63.    FIXME: Add input[type="file" i] once we figure out our file inputs.
  64.    FIXME: Add input[type="image" i] once we figure out our image inputs.
  65.    FIXME: We probably do the wrong thing if you put an invalid input type.
  66.           do we care?
  67. */
  68. textarea:disabled,
  69. input:not([type]):disabled, 
  70. input[type="color" i]:disabled,
  71. input[type="date" i]:disabled,
  72. input[type="datetime" i]:disabled,
  73. input[type="datetime-local" i]:disabled,
  74. input[type="email" i]:disabled,
  75. input[type="month" i]:disabled,
  76. input[type="password" i]:disabled,
  77. input[type="number" i]:disabled,
  78. input[type="search" i]:disabled,
  79. input[type="tel" i]:disabled,
  80. input[type="text" i]:disabled,
  81. input[type="time" i]:disabled,
  82. input[type="url" i]:disabled,
  83. input[type="week" i]:disabled {
  84.     background-color: #EBEBE4; 
  85. }
  86.  
  87. input[type="search" i]::-webkit-search-cancel-button {
  88.     margin-right: 3px;
  89. }
  90.  
  91. input[type="search" i]::-webkit-search-results-decoration {
  92.     margin: auto 3px auto 2px;
  93. }
  94.  
  95. input[type="search" i]::-webkit-search-results-button {
  96.     margin: auto 3px auto 2px;
  97. }
  98.  
  99. input::-webkit-outer-spin-button {
  100.     margin: 0;
  101. }
  102.  
  103. input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
  104.     padding: 1px 6px;
  105. }
  106.  
  107. /* Windows selects are not rounded. Custom borders for them shouldn't be either. */
  108. keygen, 
  109. select, 
  110. select[size="0"],
  111. select[size="1"] {
  112.     border-radius: 0;
  113.     /* Same as native_theme_base. */
  114.     border-color: #a9a9a9;
  115. }
  116.  
  117. select[size],
  118. select[multiple],
  119. select[size][multiple] {
  120.     /* Same as native_theme_base. */
  121.     border: 1px solid #a9a9a9;
  122. }
  123.  
  124. /* Option font must be inherited because we depend on computing the size of the
  125.    <select> based on the size of the options, and they must use the same font
  126.    for that computation to be correct */
  127. option {
  128.     font: inherit !important;
  129. }
  130.  
  131. textarea {
  132.     font-family: monospace;
  133.     /* Same as native_theme_base. */
  134.     border-color: #a9a9a9;
  135. }
  136.